from alg import Solution
from gen import generate_test_data

def test_smallest_range():
    # 生成测试数据
    test_data = generate_test_data(num_lists=5, min_length=3, max_length=10, min_value=0, max_value=100)
    print("测试数据：", test_data)
    
    # 创建 Solution 实例
    solution = Solution()
    
    # 调用 smallestRange 方法
    result = solution.smallestRange(test_data)
    print("结果：", result)

if __name__ == "__main__":
    test_smallest_range()